package com.ruoyi.teaching.api;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.teaching.api.factory.RemoteDayilyFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import com.ruoyi.common.core.constant.ServiceNameConstants;

@FeignClient(contextId = "remoteDayilyService", value = ServiceNameConstants.TEACHING_SERVICE, fallbackFactory = RemoteDayilyFallbackFactory.class)
public interface RemoteDayilyService
{
    @PostMapping("/daily_tasks/createDailyTasks")
    R<Void> createDailyTasks();

    @PutMapping("/daily_tasks/overdueDailies")
    R<Void> overdueDailies();
}
